package com.mes.common.datashard.strategy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface TableShard {

    String SITE = "site";

    String MOUTH = "mouth";

    //是否开启建表操作
    boolean tableShardOpen() default false;

    //分表策略
    String[] tableShardStrategy();

    //表名
    String[] tableName();

    //对应参数
    String[] columns();

    //默认表名
    String[] defaultName();
}